package com.zygh.policeasset.service;

import com.zygh.policeasset.mapper.ApprovalProcessMapper;
import com.zygh.policeasset.pojo.ApprovalProcess;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
/* loaded from: police-asset-2.0-0.0.1-SNAPSHOT.jar:BOOT-INF/classes/com/zygh/policeasset/service/ApprovalProcessService.class */
public class ApprovalProcessService {
    @Autowired
    ApprovalProcessMapper approvalProcessMapper;

    public int insert(ApprovalProcess approvalProcess) {
        return this.approvalProcessMapper.add(approvalProcess);
    }

    public List<ApprovalProcess> findAll() {
        return this.approvalProcessMapper.findAll();
    }

    public int updateById(ApprovalProcess approvalProcess) {
        return this.approvalProcessMapper.updateById(approvalProcess);
    }

    public List<ApprovalProcess> findByCondition(String assets_id, String assets_type) {
        return this.approvalProcessMapper.findByCondition(assets_id, assets_type);
    }

    public int insertToSelect(Integer nextId, String assetsType, String approvalOpinion, String userName, String operatingTime, String buildNum, String sectionName) {
        return this.approvalProcessMapper.insertToSelect(nextId, assetsType, approvalOpinion, userName, operatingTime, buildNum, sectionName);
    }

    public int insertToSelects(Integer nextId, String assetsType, String approvalOpinion, String userName, String operatingTime, String buildNum, String sectionName) {
        return this.approvalProcessMapper.insertToSelects(nextId, assetsType, approvalOpinion, userName, operatingTime, buildNum, sectionName);
    }

    public int insertToSelecth(Integer nextId, String assetsType, String approvalOpinion, String userName, String operatingTime, String buildNum, String sectionName) {
        return this.approvalProcessMapper.insertToSelecth(nextId, assetsType, approvalOpinion, userName, operatingTime, buildNum, sectionName);
    }

    public List<ApprovalProcess> findProcess(ApprovalProcess approvalProcess) {
        return this.approvalProcessMapper.findProcess(approvalProcess);
    }
}